package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by 10520_000 on 10/25/14.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "user")
@NamedQueries({
        @NamedQuery(name = "User.searchAllUser",
                query = "SELECT u FROM User u") ,
})
public class User implements Serializable {
    public static final String SEARCH_ALL_USER_QUERY = "User.searchAllUser";

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "First_Name")
    private String firstName;

    @Column(name = "Last_Name")

    private String lastName;

    @Column(name = "Address")
    private String address;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
